package com.yunhe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("record")
public class Record implements Serializable {
    private static final long  serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private Integer goods;
    private Integer userid;
    @TableField("admin_id")
    private Integer adminId;
    private Integer count;
    private LocalDateTime createtime;
    private String remark;

    //不用和数据库保持一致
    @TableField(exist = false)
    private String action;
}